import request from '@/utils/request'

// 查询考场管理列表
export function listAddress(query) {
  return request({
    url: '/exam/address/list',
    method: 'get',
    params: query
  })
}

// 查询考场管理详细
export function getAddress(id) {
  return request({
    url: '/exam/address/' + id,
    method: 'get'
  })
}

// 新增考场管理
export function addAddress(data) {
  return request({
    url: '/exam/address',
    method: 'post',
    data: data
  })
}

// 修改考场管理
export function updateAddress(data) {
  return request({
    url: '/exam/address/update',
    method: 'post',
    data: data
  })
}

// 删除考场管理
export function delAddress(id) {
  return request({
    url: '/exam/address/delete/' + id,
    method: 'post'
  })
}

// 导出考场管理
export function exportAddress(query) {
  return request({
    url: '/exam/address/export',
    method: 'get',
    params: query
  })
}
